Xbasic

SQL::ConnectionGenerateAddUserStatement Method

Syntax

SQL_Statement as C = GenerateAddUserStatement as C (User as C [,Password as C])

Arguments

UserCharacter

The name of the user to create.

PasswordCharacter

Default = "". The database password.

Returns

SQL_StatementCharacter

An add user group statement appropriate for the database.

Description

Generate a SQL Add User statement.

Discussion

The .GenerateAddUserStatement() method returns the SQL statement that will create the named user.

Example

dim conn as SQL::Connection
conn.open("{A5API=Access,FileName='C:\Program Files\A5V8\MDBFiles\Alphasports.mdb',UserName='Admin'}")
? conn.GenerateAddUserStatement("Tom", "")
= "CREATE USER Tom"

See Also